{extend name="public:penbase" /}
{block name="header"}
{include file="public/pentop-nav" /}
{/block}
{block name="content"}
<div class="weui-tab__panel" style="background: #fff">
    <div class="bg-box">
        <div class="user-contaner">
            <a href='{:url("user/userindex")}' class="set-btn" style="display: block;">
                <span class="icon set"></span>
            </a>
            <div class="l">
                <div class="avatar" style="background-image: url('__PUBLIC__/pension/images/avatar.png')"></div>
            </div>
            <div class="user-info">
                <h4>会员ID：{$userinfo.nickname}</h4>

                <p class="dengji">
                    会员等级：
                    <span class="icon vip"></span>
                    <a href="javascript:;">
                        {:get_user_lave($userinfo.uid)}会员
                    </a>
                </p>
            </div>
            <div class="line"></div>
        </div>
    </div>
    <div class="user-center-menu">
        <span></span>
        <ul class="t">
            <li>
                <a href="javascript:;">
                    <p class="p1">通分</p>

                    <p class="p2">{:floatval($userinfo.score)}</p>
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <p class="p1">通证</p>

                    <p class="p2">{:floatval($userinfo.card)}</p>
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <p class="p1">福利</p>

                    <p class="p2">{:floatval($userinfo.welfare)}</p>
                </a>
            </li>
        </ul>
        <ul>
            <li>
                <a href="javascript:;">
                    <p class="p3">激活积分</p>

                    <p class="p2">{:floatval($userinfo.activation)}</p>
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <p class="p3">感恩积分</p>

                    <p class="p2">{:floatval($userinfo.gratitude)}</p>
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <p class="p3">消费积分</p>

                    <p class="p2">{:floatval($userinfo.integrals)}</p>
                </a>
            </li>
        </ul>
    </div>

    <div class="user-list">
        <a class="weui-cell weui-cell_access" href='{:url("order/imazamox",array("status"=>0))}'>
            <div class="weui-cell__hd"><span class="icon order"></span></div>
            <div class="weui-cell__bd">
                <p>我的订单</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url("Predeposit/usertf")}">
            <div class="weui-cell__hd"><span class="icon wallet"></span></div>
            <div class="weui-cell__bd">
                <p>通证转账</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <a class="weui-cell weui-cell_access" href="{:url("transaction/index")}">
            <div class="weui-cell__hd"><span class="icon card"></span></div>
            <div class="weui-cell__bd">
                <p>通证交易</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>

        <a class="weui-cell weui-cell_access" href='{:url("user/shengji")}'>
            <div class="weui-cell__hd"><span class="icon upgrade"></span></div>
            <div class="weui-cell__bd">
                <p>会员升级</p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <a class="weui-cell weui-cell_access  mt10" href='{:url("user/invitation")}'>
            <div class="weui-cell__hd"><span class="icon yq"></span></div>
            <div class="weui-cell__bd">
                <p>我的邀请码</p>
            </div>
            <div class="weui-cell__ft"><!--<span class="tip">KXN54545</span>--></div>
        </a>
    </div>


</div>

<!-- Swiper JS -->
<script src="__PUBLIC__/pension/js/swiper.min.js"></script>

<!-- Initialize Swiper -->
<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: {
            el: '.swiper-pagination',
        },
        autoplay: true
    });
</script>
{/block}